﻿using System;

using MugenMvvmToolkit.Interfaces;

namespace MugenMvvmToolkitTest.TestModels
{
    public class TestStateChangedListener : IHandler
    {
        #region Properties

        public object Sender { get; private set; }

        public object State { get; private set; }

        #endregion

        #region Implementation of IHandler<in object>

        /// <summary>
        ///     Handles the message.
        /// </summary>
        /// <param name="sender">The object that raised the event.</param>
        /// <param name="message">Information about event.</param>
        public void Handle(object sender, object message)
        {
            Sender = sender;
            State = message;
        }

        #endregion
    }
}